home *** CD-ROM | disk | FTP | other *** search
- on mouseDown me
- global gClothingList,gameObj,draggableList
- doAction (the clickOn)
- set spr=the spriteNum of me
- set pos=getPos(gClothingList,spr)
- if pos>0 then
- --checks to see if required pieces of clothing have been put on elephant(#showFlag=0)
- if getaProp(getaProp(the draggableList of gameObj,spr),#showFlag)=0 then
- deleteAt(gClothingList,pos)
- end if
- end if
- end
-